<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.ico">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.ico">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.ico">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="/lib/pace/pace-theme-material.min.css">
  <script src="/lib/pace/pace.min.js"></script>


<script id="hexo-configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    hostname: new URL('https://ychienhung.gitee.io').hostname,
    root: '/',
    scheme: 'Muse',
    version: '7.6.0',
    exturl: false,
    sidebar: {"position":"right","display":"post","padding":18,"offset":12,"onmobile":false},
    copycode: {"enable":true,"show_result":true,"style":"mac"},
    back2top: {"enable":true,"sidebar":false,"scrollpercent":false},
    bookmark: {"enable":false,"color":"#222","save":"auto"},
    fancybox: false,
    mediumzoom: false,
    lazyload: false,
    pangu: false,
    comments: {"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},
    algolia: {
      appID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    },
    localsearch: {"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},
    path: 'search.xml',
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}
  };
</script>

  <meta name="description" content="定义 中断  ​        在CPU处理某一事件A时，发生了另一事件B，请求CPU迅速去处理（中断发生）；CPU暂时停止当前的工作（中断响应），转去处理事件B（中断服务）；待CPU处理事件B完毕后，再回到原来事件A被中断的地方继续处理事件A（中断返回），这过程称为中断。">
<meta property="og:type" content="article">
<meta property="og:title" content="单片机之中断">
<meta property="og:url" content="https://ychienhung.gitee.io/2019/12/31/%E5%8D%95%E7%89%87%E6%9C%BA%E4%B9%8B%E4%B8%AD%E6%96%AD/index.html">
<meta property="og:site_name" content="YChienHung&#39;s blog">
<meta property="og:description" content="定义 中断  ​        在CPU处理某一事件A时，发生了另一事件B，请求CPU迅速去处理（中断发生）；CPU暂时停止当前的工作（中断响应），转去处理事件B（中断服务）；待CPU处理事件B完毕后，再回到原来事件A被中断的地方继续处理事件A（中断返回），这过程称为中断。">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2019-12-31T08:20:59.000Z">
<meta property="article:modified_time" content="2019-12-31T10:04:51.005Z">
<meta property="article:author" content="YChienHung">
<meta property="article:tag" content="单片机">
<meta property="article:tag" content="中断">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="https://ychienhung.gitee.io/2019/12/31/%E5%8D%95%E7%89%87%E6%9C%BA%E4%B9%8B%E4%B8%AD%E6%96%AD/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome: false,
    isPost: true
  };
</script>
  <title>单片机之中断 | YChienHung's blog</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

<link rel="alternate" href="/atom.xml" title="YChienHung's blog" type="application/atom+xml">
</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-meta">

    <div>
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">YChienHung's blog</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
  </div>

  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>
</div>


<nav class="site-nav">
  
  <ul id="menu" class="menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>首页</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-fw fa-tags"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-fw fa-th"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>归档</a>

  </li>
        <li class="menu-item menu-item-memoir">

    <a href="/memoir/" rel="section"><i class="fa fa-fw fa-sitemap"></i>回忆录</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-fw fa-user"></i>关于</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>

</nav>
  <div class="site-search">
    <div class="popup search-popup">
    <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocorrect="off" autocapitalize="none"
           placeholder="搜索..." spellcheck="false"
           type="text" id="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result"></div>

</div>
<div class="search-pop-overlay"></div>

  </div>
</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content">
            

  <div class="posts-expand">
      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block " lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://ychienhung.gitee.io/2019/12/31/%E5%8D%95%E7%89%87%E6%9C%BA%E4%B9%8B%E4%B8%AD%E6%96%AD/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.png">
      <meta itemprop="name" content="YChienHung">
      <meta itemprop="description" content="Forget me not.">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="YChienHung's blog">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          单片机之中断
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2019-12-31 16:20:59" itemprop="dateCreated datePublished" datetime="2019-12-31T16:20:59+08:00">2019-12-31</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="fa fa-calendar-check-o"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2019-12-31 18:04:51" itemprop="dateModified" datetime="2019-12-31T18:04:51+08:00">2019-12-31</time>
              </span>

          <br>
            <span class="post-meta-item" title="本文字数">
              <span class="post-meta-item-icon">
                <i class="fa fa-file-word-o"></i>
              </span>
                <span class="post-meta-item-text">本文字数：</span>
              <span>905</span>
            </span>
            <span class="post-meta-item" title="阅读时长">
              <span class="post-meta-item-icon">
                <i class="fa fa-clock-o"></i>
              </span>
                <span class="post-meta-item-text">阅读时长 &asymp;</span>
              <span>1 分钟</span>
            </span>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h2 id="定义"><a href="#定义" class="headerlink" title="定义"></a>定义</h2><ol>
<li><h3 id="中断"><a href="#中断" class="headerlink" title="中断"></a>中断</h3></li>
</ol>
<p>​        在CPU处理某一事件A时，发生了另一事件B，请求CPU迅速去处理（中断发生）；CPU暂时停止当前的工作（中断响应），转去处理事件B（中断服务）；待CPU处理事件B完毕后，再回到原来事件A被中断的地方继续处理事件A（中断返回），这过程称为中断。<a id="more"></a></p>
<ol start="2">
<li><h3 id="中断嵌套"><a href="#中断嵌套" class="headerlink" title="中断嵌套"></a>中断嵌套</h3></li>
</ol>
<p>如果单片机正在处理一个中断程序，此时，又有一个中断现象发生，单片机将会停止当前中断程序，而转去执行新的中断程序，，新中断程序处理完毕后再回到刚才停止的中断程序处执行，执行完这个中断后而返回主程序继续执行主程序。</p>
<h2 id="中断源"><a href="#中断源" class="headerlink" title="中断源"></a>中断源</h2><ol>
<li><h3 id="介绍"><a href="#介绍" class="headerlink" title="介绍"></a>介绍</h3></li>
</ol>
<table>
<thead>
<tr>
<th>中断源</th>
<th>详情</th>
<th>触发条件</th>
</tr>
</thead>
<tbody><tr>
<td>INT0</td>
<td>外部中断0</td>
<td>由P3.2(52单片机)引入，低电平或下降沿引起</td>
</tr>
<tr>
<td>INT1</td>
<td>外部中断1</td>
<td>由P3.3(52单片机)引入，低电平或下降沿引起</td>
</tr>
<tr>
<td>T0</td>
<td>定时器/计数器0中断</td>
<td>由T0计数器计满回零引起</td>
</tr>
<tr>
<td>T1</td>
<td>定时器/计数器1中断</td>
<td>由T1计数器计满回零引起</td>
</tr>
<tr>
<td>T2</td>
<td>定时器/计数器2中断</td>
<td>由T2计数器计满回零引起</td>
</tr>
<tr>
<td>T1/R1</td>
<td>串行口中断</td>
<td>串行端口完成一帧字节发送/接收后引起</td>
</tr>
</tbody></table>
<ol start="2">
<li><h3 id="中断级别"><a href="#中断级别" class="headerlink" title="中断级别"></a>中断级别</h3></li>
</ol>
<table>
<thead>
<tr>
<th>中断源</th>
<th>默认中断级别</th>
<th>序号</th>
</tr>
</thead>
<tbody><tr>
<td>INT0</td>
<td>最高</td>
<td>0</td>
</tr>
<tr>
<td>T0</td>
<td>第2</td>
<td>1</td>
</tr>
<tr>
<td>INT1</td>
<td>第3</td>
<td>2</td>
</tr>
<tr>
<td>T1</td>
<td>第4</td>
<td>3</td>
</tr>
<tr>
<td>T1/R1</td>
<td>第5</td>
<td>4</td>
</tr>
<tr>
<td>T2</td>
<td>最低</td>
<td>5</td>
</tr>
</tbody></table>
<h2 id="中断相关寄存器"><a href="#中断相关寄存器" class="headerlink" title="中断相关寄存器"></a>中断相关寄存器</h2><ol>
<li><h3 id="中断允许寄存器"><a href="#中断允许寄存器" class="headerlink" title="中断允许寄存器"></a>中断允许寄存器</h3></li>
</ol>
<p>​            Enable xx    1为开启 0为关闭</p>
<p>​            EA： 全局中断允许位</p>
<p>​            ETx: 定时器/计数器中断允许位</p>
<p>​            EXx: 外部中断允许位</p>
<p>​            ES:   串行口中断中断允许位</p>
<ol start="2">
<li><h3 id="中断优先级寄存器"><a href="#中断优先级寄存器" class="headerlink" title="中断优先级寄存器"></a>中断优先级寄存器</h3></li>
</ol>
<p>​            Priority xx    1为高优先级中断   0为低优先级中断</p>
<p>​            命名规则同上</p>
<ol start="3">
<li><h3 id="定时器-计时器工作方式寄存器-TMOD"><a href="#定时器-计时器工作方式寄存器-TMOD" class="headerlink" title="定时器/计时器工作方式寄存器 TMOD"></a>定时器/计时器工作方式寄存器 TMOD</h3></li>
</ol>
<ol start="4">
<li><h3 id="定时器-计时器控制寄存器-TCON"><a href="#定时器-计时器控制寄存器-TCON" class="headerlink" title="定时器/计时器控制寄存器 TCON"></a>定时器/计时器控制寄存器 TCON</h3></li>
</ol>
<h2 id="中断服务程序的写法"><a href="#中断服务程序的写法" class="headerlink" title="中断服务程序的写法"></a>中断服务程序的写法</h2><ol>
<li><h3 id="配置程序"><a href="#配置程序" class="headerlink" title="配置程序"></a>配置程序</h3></li>
</ol>
<div class="note info">
            <p>中断程序的总执行时间要小于计时器周期，否则其他程序会出现异常，代码没错，却不会触发</p>
          </div>

<figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">TMOD =<span class="number">0x01</span>; <span class="comment">//设置计时器的工作模式</span></span><br><span class="line">EA=<span class="number">1</span>;  <span class="comment">//开启全局中断开关</span></span><br><span class="line"></span><br><span class="line">TH0=(<span class="number">65535</span><span class="number">-45872</span>)/<span class="number">256</span>;  <span class="comment">//装载高八位和第八位</span></span><br><span class="line">TL0=(<span class="number">65535</span><span class="number">-45872</span>)%<span class="number">256</span>;</span><br><span class="line">ET0=<span class="number">1</span>; <span class="comment">//开启计时器0</span></span><br><span class="line">TR0=<span class="number">1</span>; <span class="comment">//运行计时器0</span></span><br></pre></td></tr></table></figure>

<ol start="2">
<li><h3 id="中断程序"><a href="#中断程序" class="headerlink" title="中断程序"></a>中断程序</h3></li>
</ol>
<figure class="highlight c"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="function"><span class="keyword">void</span> <span class="title">T0_time</span><span class="params">()</span> interrupt 0</span></span><br><span class="line"><span class="function"></span>&#123;</span><br><span class="line">	TH0=(<span class="number">65535</span><span class="number">-45872</span>)/<span class="number">256</span>; </span><br><span class="line">    TL0=(<span class="number">65535</span><span class="number">-45872</span>)%<span class="number">256</span>;</span><br><span class="line">    <span class="comment">//其他的操作</span></span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

    </div>

    
    
    
        <div class="reward-container">
  <div></div>
  <button disable="enable" onclick="var qr = document.getElementById(&quot;qr&quot;); qr.style.display = (qr.style.display === 'none') ? 'block' : 'none';">
    打赏
  </button>
  <div id="qr" style="display: none;">
      
      <div style="display: inline-block;">
        <img src="/images/wechatpay.png" alt="YChienHung 微信支付">
        <p>微信支付</p>
      </div>
      
      <div style="display: inline-block;">
        <img src="/images/alipay.jpg" alt="YChienHung 支付宝">
        <p>支付宝</p>
      </div>

  </div>
</div>

        

<div>
<ul class="post-copyright">
  <li class="post-copyright-author">
    <strong>本文作者： </strong>YChienHung
  </li>
  <li class="post-copyright-link">
    <strong>本文链接：</strong>
    <a href="https://ychienhung.gitee.io/2019/12/31/%E5%8D%95%E7%89%87%E6%9C%BA%E4%B9%8B%E4%B8%AD%E6%96%AD/" title="单片机之中断">https://ychienhung.gitee.io/2019/12/31/单片机之中断/</a>
  </li>
  <li class="post-copyright-license">
    <strong>版权声明： </strong>本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh" rel="noopener" target="_blank"><i class="fa fa-fw fa-creative-commons"></i>BY-NC-SA</a> 许可协议。转载请注明出处！
  </li>
</ul>
</div>


      <footer class="post-footer">
          
          <div class="post-tags">
              <a href="/tags/%E5%8D%95%E7%89%87%E6%9C%BA/" rel="tag"><i class="fa fa-tag"></i> 单片机</a>
              <a href="/tags/%E4%B8%AD%E6%96%AD/" rel="tag"><i class="fa fa-tag"></i> 中断</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2019/12/28/Keil5-%E9%97%AE%E9%A2%98%E5%A4%84%E7%90%86%E6%96%B9%E6%A1%88%E5%90%88%E9%9B%86/" rel="prev" title="Keil5 问题处理方案合集">
      <i class="fa fa-chevron-left"></i> Keil5 问题处理方案合集
    </a></div>
      <div class="post-nav-item">
    <a href="/2020/01/01/%E5%8D%95%E7%89%87%E6%9C%BA%E4%B9%8B%E4%B8%B2%E8%A1%8C%E5%8F%A3%E9%80%9A%E4%BF%A1/" rel="next" title="单片机之串行口通信">
      单片机之串行口通信 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  

  </div>


          </div>
          
    
  <div class="comments">
    <div id="lv-container" data-id="city" data-uid="MTAyMC8zOTIxMi8xNTczOQ=="></div>
  </div>
  

<script>
  window.addEventListener('tabs:register', () => {
    let activeClass = CONFIG.comments.activeClass;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#定义"><span class="nav-number">1.</span> <span class="nav-text">定义</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#中断"><span class="nav-number">1.1.</span> <span class="nav-text">中断</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#中断嵌套"><span class="nav-number">1.2.</span> <span class="nav-text">中断嵌套</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#中断源"><span class="nav-number">2.</span> <span class="nav-text">中断源</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#介绍"><span class="nav-number">2.1.</span> <span class="nav-text">介绍</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#中断级别"><span class="nav-number">2.2.</span> <span class="nav-text">中断级别</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#中断相关寄存器"><span class="nav-number">3.</span> <span class="nav-text">中断相关寄存器</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#中断允许寄存器"><span class="nav-number">3.1.</span> <span class="nav-text">中断允许寄存器</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#中断优先级寄存器"><span class="nav-number">3.2.</span> <span class="nav-text">中断优先级寄存器</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#定时器-计时器工作方式寄存器-TMOD"><span class="nav-number">3.3.</span> <span class="nav-text">定时器&#x2F;计时器工作方式寄存器 TMOD</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#定时器-计时器控制寄存器-TCON"><span class="nav-number">3.4.</span> <span class="nav-text">定时器&#x2F;计时器控制寄存器 TCON</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#中断服务程序的写法"><span class="nav-number">4.</span> <span class="nav-text">中断服务程序的写法</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#配置程序"><span class="nav-number">4.1.</span> <span class="nav-text">配置程序</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#中断程序"><span class="nav-number">4.2.</span> <span class="nav-text">中断程序</span></a></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="YChienHung"
      src="/images/avatar.png">
  <p class="site-author-name" itemprop="name">YChienHung</p>
  <div class="site-description" itemprop="description">Forget me not.</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">18</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">1</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">15</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/ychienhung" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;ychienhung" rel="noopener" target="_blank"><i class="fa fa-fw fa-github"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://gitee.com/ychienhung" title="Gitee → https:&#x2F;&#x2F;gitee.com&#x2F;ychienhung" rel="noopener" target="_blank"><i class="fa fa-fw fa-gitee"></i>Gitee</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://weibo.com/u/6664907998" title="Weibo → https:&#x2F;&#x2F;weibo.com&#x2F;u&#x2F;6664907998" rel="noopener" target="_blank"><i class="fa fa-fw fa-weibo"></i>Weibo</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:1399449399@qq.com" title="E-Mail → mailto:1399449399@qq.com" rel="noopener" target="_blank"><i class="fa fa-fw fa-envelope"></i>E-Mail</a>
      </span>
      <span class="links-of-author-item">
        <a href="/atom.xml" title="RSS → &#x2F;atom.xml"><i class="fa fa-fw fa-rss"></i>RSS</a>
      </span>
  </div>
  <div class="cc-license motion-element" itemprop="license">
    <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh" class="cc-opacity" rel="noopener" target="_blank"><img src="/images/cc-by-nc-sa.svg" alt="Creative Commons"></a>
  </div>


  <div class="links-of-blogroll motion-element">
    <div class="links-of-blogroll-title">
      <i class="fa fa-fw fa-link"></i>
      友情链接
    </div>
    <ul class="links-of-blogroll-list">
        <li class="links-of-blogroll-item">
          <a href="https://diygod.me/" title="https:&#x2F;&#x2F;diygod.me" rel="noopener" target="_blank">DIYGod</a>
        </li>
    </ul>
  </div>

      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

<div class="copyright">
  
  &copy; 2019 – 
  <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">YChienHung</span>
</div>

<!-- 在网页底部添加网站运行时间 -->
<span id="timeDate">载入天数...</span><span id="times">载入时分秒...</span>
<script>
    var now = new Date();
    function createtime() {
        var grt= new Date("07/20/2019 19:21:37");//此处修改你的建站时间或者网站上线时间
        now.setTime(now.getTime()+250);
        days = (now - grt ) / 1000 / 60 / 60 / 24; dnum = Math.floor(days);
        hours = (now - grt ) / 1000 / 60 / 60 - (24 * dnum); hnum = Math.floor(hours);
        if(String(hnum).length ==1 ){hnum = "0" + hnum;} minutes = (now - grt ) / 1000 /60 - (24 * 60 * dnum) - (60 * hnum);
        mnum = Math.floor(minutes); if(String(mnum).length ==1 ){mnum = "0" + mnum;}
        seconds = (now - grt ) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);
        snum = Math.round(seconds); if(String(snum).length ==1 ){snum = "0" + snum;}
        document.getElementById("timeDate").innerHTML = "本站已经运行 "+dnum+" 天 ";
        document.getElementById("times").innerHTML = hnum + " 小时 " + mnum + " 分 " + snum + " 秒";
    }
setInterval("createtime()",250);
</script>
<br>

托管于<a href="https://gitee.com/" target="_blank" rel="nofollow"> Gitee</a>


  <span class="post-meta-divider">|</span>

  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> 强力驱动 v4.2.0
  </div>
  <span class="post-meta-divider">|</span>
  <div class="theme-info">主题 – <a href="https://muse.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Muse</a> v7.6.0
  </div>

<!-- 新增访客统计代码-->
<div class="busuanzi-count">
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
  <span id="busuanzi_container_site_pv">本站已被访问 <span id="busuanzi_value_site_pv"></span>次</span>
</div>
<!-- 新增访客统计代码 END-->

<!-- 页面点击小红心 -->
<script type="text/javascript" src="\js\love.js"></script>
<!--浏览器搞笑标题-->
<!--<script type="text/javascript" src="\js\FunnyTitle.js"></script>-->

<!-- require APlayer -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">
<script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script>
<!-- require MetingJS -->
<script src="https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js"></script>

<!--MusicPlayer-->
<meting-js
  fixed ="true"
	server="tencent"
	type  ="playlist"
	id    ="3578030853"
  loop	="all"
  order	="list"
  listFolded="false">
</meting-js>
        








      </div>
    </footer>
  </div>

  
  <script size="150" alpha="0.6" zIndex="-2" src="//cdn.jsdelivr.net/gh/theme-next/theme-next-canvas-ribbon@1/canvas-ribbon.js"></script>
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/muse.js"></script>


<script src="/js/next-boot.js"></script>




  




  
<script src="/js/local-search.js"></script>













  

  

<script>
NexT.utils.loadComments(document.querySelector('#lv-container'), () => {
  window.livereOptions = {
    refer: location.pathname.replace(CONFIG.root, '').replace('index.html', '')
  };
  (function(d, s) {
    var j, e = d.getElementsByTagName(s)[0];
    if (typeof LivereTower === 'function') { return; }
    j = d.createElement(s);
    j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
    j.async = true;
    e.parentNode.insertBefore(j, e);
  })(document, 'script');
});
</script>

</body>
</html>
